package lemon.dog.common;

public enum ErrorEnum {
    DEFAULT(-1, "系统错误"),
    USER_NOT_AUTHORITY(10001, "token失效"),
    USER_LOGIN_ERROR(10002, "用户名或者密码错误"),
    USER_EXIST(10003, "用户已注册");
    private Integer code;
    private String message;
    ErrorEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
